#ifndef PLAYER_H
#define PLAYER_H

#include "Vector.h"
#include "Position.h"
#include "Quad.h"
#include "Controller.h"
#include "Entity.h"
#include "Texture.h"

class Player : public Quad {
private:
	long m_endJumpTime;
	bool m_jumping;
	Vector m_speed;
	MovementMap m_movementMap;
	bool m_intersecting;
	bool m_right;
	bool m_dead;
	bool m_haswon;

public:
	Player();
	Player(Position p);
	void update( float frametime );
	void setMovementMap(const MovementMap& map);

	void setIntersect(Entity * h, int side);
	virtual bool isDead();
	void setDead();
	bool hasWon() { return m_haswon; }
	void setHasWon( bool won ) { m_haswon = won; }
};

#endif